package conson.tech.manage.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import conson.tech.manage.activity.entity.pojo.TicketInfoRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * InterfaceName: TicketRecordMapper
 * Description:
 * Author: HXL
 * Date: 2020/5/22 2:18 下午
 * Version: 1.0
 */
public interface TicketRecordMapper extends BaseMapper<TicketInfoRecord> {
    int updateTicketRecord(@Param("busTicketId") String busTicketId,@Param("status") Integer status);

    Integer checkActivationTicket(@Param("mobile")String mobile);

    TicketInfoRecord checkTermOfValidity(@Param("record") TicketInfoRecord record);

    List<TicketInfoRecord> queryTicketInfoRecordListById(@Param("ticketRecordList") List<Long> ticketRecordList);

    int updateTimeOutTicketRecordList(@Param("idList") List<Long> idList);

    List<Long> queryTimeOutTicket();

    List<TicketInfoRecord> queryTicketInfoRecord(@Param("infoRecord") TicketInfoRecord record);
}
